package com.ldp.designpatterns.study.bridge.demo1.abstractClass;

import com.ldp.designpatterns.study.bridge.demo1.impl.Color;

/**
 * @ClassName Square
 * @Description TODO
 * @Author lindipei
 * @Date 2023/10/17 11:24
 */
public class Square extends Shape{
    public Square(Color color) {
        super(color);
    }

    @Override
    public void draw() {
        System.out.print("Drawing a square. ");
        color.applyColor();
    }
}
